package com.zhupf.springcloud.service.payment.fallback;

import com.zhupf.springcloud.entity.CommonResult;
import com.zhupf.springcloud.entity.Payment;
import com.zhupf.springcloud.service.payment.PaymentService;
import org.springframework.stereotype.Component;

@Component
public class PaymentServiceFallback implements PaymentService  {
    @Override
    public CommonResult<Payment> info(Long id) {
        return new CommonResult(500,"error");
    }

    @Override
    public CommonResult create(Payment payment) {
        return new CommonResult(500,"error");
    }

    @Override
    public String zipkin() {
        return null;
    }

    @Override
    public String timeOut() {
        return "timeout";
    }

}
